3.381 \(\int \frac {(a+b \tan (c+d x)) (A+B \tan (c+d x))}{\sqrt {\tan (c+d x)}} \, dx\)
Optimal. Leaf size=205 \[ -\frac {(a (A+B)+b (A-B)) \tan ^{-1}\left (1-\sqrt {2} \sqrt {\tan (c+d x)}\right )}{\sqrt {2} d}+\frac {(a (A+B)+b (A-B)) \tan ^{-1}\left (\sqrt {2} \sqrt {\tan (c+d x)}+1\right )}{\sqrt {2} d}-\frac {(a (A-B)-b (A+B)) \log \left (\tan (c+d x)-\sqrt {2} \sqrt {\tan (c+d x)}+1\right )}{2 \sqrt {2} d}+\frac {(a (A-B)-b (A+B)) \log \left (\tan (c+d x)+\sqrt {2} \sqrt {\tan (c+d x)}+1\right )}{2 \sqrt {2} d}+\frac {2 b B \sqrt {\tan (c+d x)}}{d} \]
[Out]
1/2*(b*(A-B)+a*(A+B))*arctan(-1+2^(1/2)*tan(d*x+c)^(1/2))/d*2^(1/2)+1/2*(b*(A-B)+a*(A+B))*arctan(1+2^(1/2)*tan
(d*x+c)^(1/2))/d*2^(1/2)-1/4*(a*(A-B)-b*(A+B))*ln(1-2^(1/2)*tan(d*x+c)^(1/2)+tan(d*x+c))/d*2^(1/2)+1/4*(a*(A-B
)-b*(A+B))*ln(1+2^(1/2)*tan(d*x+c)^(1/2)+tan(d*x+c))/d*2^(1/2)+2*b*B*tan(d*x+c)^(1/2)/d
________________________________________________________________________________________
Rubi [A] time = 0.20, antiderivative size = 205, normalized size of antiderivative = 1.00,
number of steps used = 11, number of rules used = 8, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.258, Rules used
= {3592, 3534, 1168, 1162, 617, 204, 1165, 628} \[ -\frac {(a (A+B)+b (A-B)) \tan ^{-1}\left (1-\sqrt {2} \sqrt {\tan (c+d x)}\right )}{\sqrt {2} d}+\frac {(a (A+B)+b (A-B)) \tan ^{-1}\left (\sqrt {2} \sqrt {\tan (c+d x)}+1\right )}{\sqrt {2} d}-\frac {(a (A-B)-b (A+B)) \log \left (\tan (c+d x)-\sqrt {2} \sqrt {\tan (c+d x)}+1\right )}{2 \sqrt {2} d}+\frac {(a (A-B)-b (A+B)) \log \left (\tan (c+d x)+\sqrt {2} \sqrt {\tan (c+d x)}+1\right )}{2 \sqrt {2} d}+\frac {2 b B \sqrt {\tan (c+d x)}}{d} \]
Antiderivative was successfully verified.
[In]
Int[((a + b*Tan[c + d*x])*(A + B*Tan[c + d*x]))/Sqrt[Tan[c + d*x]],x]
[Out]
-(((b*(A - B) + a*(A + B))*ArcTan[1 - Sqrt[2]*Sqrt[Tan[c + d*x]]])/(Sqrt[2]*d)) + ((b*(A - B) + a*(A + B))*Arc
Tan[1 + Sqrt[2]*Sqrt[Tan[c + d*x]]])/(Sqrt[2]*d) - ((a*(A - B) - b*(A + B))*Log[1 - Sqrt[2]*Sqrt[Tan[c + d*x]]
+ Tan[c + d*x]])/(2*Sqrt[2]*d) + ((a*(A - B) - b*(A + B))*Log[1 + Sqrt[2]*Sqrt[Tan[c + d*x]] + Tan[c + d*x]])
/(2*Sqrt[2]*d) + (2*b*B*Sqrt[Tan[c + d*x]])/d
Rule 204
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTan[(Rt[-b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[-b, 2]), x] /
; FreeQ[{a, b}, x] && PosQ[a/b] && (LtQ[a, 0] || LtQ[b, 0])
Rule 617
Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> With[{q = 1 - 4*Simplify[(a*c)/b^2]}, Dist[-2/b, Sub
st[Int[1/(q - x^2), x], x, 1 + (2*c*x)/b], x] /; RationalQ[q] && (EqQ[q^2, 1] || !RationalQ[b^2 - 4*a*c])] /;
FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]
Rule 628
Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[(d*Log[RemoveContent[a + b*x +
c*x^2, x]])/b, x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]
Rule 1162
Int[((d_) + (e_.)*(x_)^2)/((a_) + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[(2*d)/e, 2]}, Dist[e/(2*c), Int[1/S
imp[d/e + q*x + x^2, x], x], x] + Dist[e/(2*c), Int[1/Simp[d/e - q*x + x^2, x], x], x]] /; FreeQ[{a, c, d, e},
x] && EqQ[c*d^2 - a*e^2, 0] && PosQ[d*e]
Rule 1165
Int[((d_) + (e_.)*(x_)^2)/((a_) + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[(-2*d)/e, 2]}, Dist[e/(2*c*q), Int[
(q - 2*x)/Simp[d/e + q*x - x^2, x], x], x] + Dist[e/(2*c*q), Int[(q + 2*x)/Simp[d/e - q*x - x^2, x], x], x]] /
; FreeQ[{a, c, d, e}, x] && EqQ[c*d^2 - a*e^2, 0] && NegQ[d*e]
Rule 1168
Int[((d_) + (e_.)*(x_)^2)/((a_) + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[a*c, 2]}, Dist[(d*q + a*e)/(2*a*c),
Int[(q + c*x^2)/(a + c*x^4), x], x] + Dist[(d*q - a*e)/(2*a*c), Int[(q - c*x^2)/(a + c*x^4), x], x]] /; FreeQ
[{a, c, d, e}, x] && NeQ[c*d^2 + a*e^2, 0] && NeQ[c*d^2 - a*e^2, 0] && NegQ[-(a*c)]
Rule 3534
Int[((c_) + (d_.)*tan[(e_.) + (f_.)*(x_)])/Sqrt[(b_.)*tan[(e_.) + (f_.)*(x_)]], x_Symbol] :> Dist[2/f, Subst[I
nt[(b*c + d*x^2)/(b^2 + x^4), x], x, Sqrt[b*Tan[e + f*x]]], x] /; FreeQ[{b, c, d, e, f}, x] && NeQ[c^2 - d^2,
0] && NeQ[c^2 + d^2, 0]
Rule 3592
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*tan[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*tan[(
e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(B*d*(a + b*Tan[e + f*x])^(m + 1))/(b*f*(m + 1)), x] + Int[(a + b*Tan[e
+ f*x])^m*Simp[A*c - B*d + (B*c + A*d)*Tan[e + f*x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, m}, x] && NeQ[b
*c - a*d, 0] && !LeQ[m, -1]
Rubi steps
\begin {align*} \int \frac {(a+b \tan (c+d x)) (A+B \tan (c+d x))}{\sqrt {\tan (c+d x)}} \, dx &=\frac {2 b B \sqrt {\tan (c+d x)}}{d}+\int \frac {a A-b B+(A b+a B) \tan (c+d x)}{\sqrt {\tan (c+d x)}} \, dx\\ &=\frac {2 b B \sqrt {\tan (c+d x)}}{d}+\frac {2 \operatorname {Subst}\left (\int \frac {a A-b B+(A b+a B) x^2}{1+x^4} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}\\ &=\frac {2 b B \sqrt {\tan (c+d x)}}{d}+\frac {(b (A-B)+a (A+B)) \operatorname {Subst}\left (\int \frac {1+x^2}{1+x^4} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}+\frac {(a (A-B)-b (A+B)) \operatorname {Subst}\left (\int \frac {1-x^2}{1+x^4} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}\\ &=\frac {2 b B \sqrt {\tan (c+d x)}}{d}+\frac {(b (A-B)+a (A+B)) \operatorname {Subst}\left (\int \frac {1}{1-\sqrt {2} x+x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{2 d}+\frac {(b (A-B)+a (A+B)) \operatorname {Subst}\left (\int \frac {1}{1+\sqrt {2} x+x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{2 d}-\frac {(a (A-B)-b (A+B)) \operatorname {Subst}\left (\int \frac {\sqrt {2}+2 x}{-1-\sqrt {2} x-x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{2 \sqrt {2} d}-\frac {(a (A-B)-b (A+B)) \operatorname {Subst}\left (\int \frac {\sqrt {2}-2 x}{-1+\sqrt {2} x-x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{2 \sqrt {2} d}\\ &=-\frac {(a (A-B)-b (A+B)) \log \left (1-\sqrt {2} \sqrt {\tan (c+d x)}+\tan (c+d x)\right )}{2 \sqrt {2} d}+\frac {(a (A-B)-b (A+B)) \log \left (1+\sqrt {2} \sqrt {\tan (c+d x)}+\tan (c+d x)\right )}{2 \sqrt {2} d}+\frac {2 b B \sqrt {\tan (c+d x)}}{d}+\frac {(b (A-B)+a (A+B)) \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\sqrt {2} \sqrt {\tan (c+d x)}\right )}{\sqrt {2} d}-\frac {(b (A-B)+a (A+B)) \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\sqrt {2} \sqrt {\tan (c+d x)}\right )}{\sqrt {2} d}\\ &=-\frac {(b (A-B)+a (A+B)) \tan ^{-1}\left (1-\sqrt {2} \sqrt {\tan (c+d x)}\right )}{\sqrt {2} d}+\frac {(b (A-B)+a (A+B)) \tan ^{-1}\left (1+\sqrt {2} \sqrt {\tan (c+d x)}\right )}{\sqrt {2} d}-\frac {(a (A-B)-b (A+B)) \log \left (1-\sqrt {2} \sqrt {\tan (c+d x)}+\tan (c+d x)\right )}{2 \sqrt {2} d}+\frac {(a (A-B)-b (A+B)) \log \left (1+\sqrt {2} \sqrt {\tan (c+d x)}+\tan (c+d x)\right )}{2 \sqrt {2} d}+\frac {2 b B \sqrt {\tan (c+d x)}}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.18, size = 94, normalized size = 0.46 \[ -\frac {\sqrt [4]{-1} (a-i b) (A-i B) \tan ^{-1}\left ((-1)^{3/4} \sqrt {\tan (c+d x)}\right )+\sqrt [4]{-1} (a+i b) (A+i B) \tanh ^{-1}\left ((-1)^{3/4} \sqrt {\tan (c+d x)}\right )-2 b B \sqrt {\tan (c+d x)}}{d} \]
Antiderivative was successfully verified.
[In]
Integrate[((a + b*Tan[c + d*x])*(A + B*Tan[c + d*x]))/Sqrt[Tan[c + d*x]],x]
[Out]
-(((-1)^(1/4)*(a - I*b)*(A - I*B)*ArcTan[(-1)^(3/4)*Sqrt[Tan[c + d*x]]] + (-1)^(1/4)*(a + I*b)*(A + I*B)*ArcTa
nh[(-1)^(3/4)*Sqrt[Tan[c + d*x]]] - 2*b*B*Sqrt[Tan[c + d*x]])/d)
________________________________________________________________________________________
fricas [B] time = 21.41, size = 13180, normalized size = 64.29 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*tan(d*x+c))*(A+B*tan(d*x+c))/tan(d*x+c)^(1/2),x, algorithm="fricas")
[Out]
1/4*(4*sqrt(2)*d^5*sqrt(((A^4 + 2*A^2*B^2 + B^4)*a^4 + 2*(A^4 + 2*A^2*B^2 + B^4)*a^2*b^2 + (A^4 + 2*A^2*B^2 +
B^4)*b^4 + 2*(A*B*a^2 - A*B*b^2 + (A^2 - B^2)*a*b)*d^2*sqrt(((A^4 + 2*A^2*B^2 + B^4)*a^4 + 2*(A^4 + 2*A^2*B^2
+ B^4)*a^2*b^2 + (A^4 + 2*A^2*B^2 + B^4)*b^4)/d^4))/((A^4 - 2*A^2*B^2 + B^4)*a^4 - 8*(A^3*B - A*B^3)*a^3*b - 2
*(A^4 - 10*A^2*B^2 + B^4)*a^2*b^2 + 8*(A^3*B - A*B^3)*a*b^3 + (A^4 - 2*A^2*B^2 + B^4)*b^4))*(((A^4 + 2*A^2*B^2
+ B^4)*a^4 + 2*(A^4 + 2*A^2*B^2 + B^4)*a^2*b^2 + (A^4 + 2*A^2*B^2 + B^4)*b^4)/d^4)^(3/4)*sqrt(((A^4 - 2*A^2*B
^2 + B^4)*a^4 - 8*(A^3*B - A*B^3)*a^3*b - 2*(A^4 - 10*A^2*B^2 + B^4)*a^2*b^2 + 8*(A^3*B - A*B^3)*a*b^3 + (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2*A^2*B^2 + B^4)*b^4))*s
qrt(sin(d*x + c)/cos(d*x + c))*(((A^4 + 2*A^2*B^2 + B^4)*a^4 + 2*(A^4 + 2*A^2*B^2 + B^4)*a^2*b^2 + (A^4 + 2*A^
2*B^2 + B^4)*b^4)/d^4)^(1/4) + ((A^8 - 2*A^4*B^4 + B^8)*a^8 - 8*(A^7*B + A^5*B^3 - A^3*B^5 - A*B^7)*a^7*b + 16
*(A^6*B^2 + 2*A^4*B^4 + A^2*B^6)*a^6*b^2 - 8*(A^7*B + A^5*B^3 - A^3*B^5 - A*B^7)*a^5*b^3 - 2*(A^8 - 16*A^6*B^2
- 34*A^4*B^4 - 16*A^2*B^6 + B^8)*a^4*b^4 + 8*(A^7*B + A^5*B^3 - A^3*B^5 - A*B^7)*a^3*b^5 + 16*(A^6*B^2 + 2*A^
4*B^4 + A^2*B^6)*a^2*b^6 + 8*(A^7*B + A^5*B^3 - A^3*B^5 - A*B^7)*a*b^7 + (A^8 - 2*A^4*B^4 + B^8)*b^8)*sin(d*x
+ c))/cos(d*x + c)) + 8*((A^4*B + 2*A^2*B^3 + B^5)*a^4*b + 2*(A^4*B + 2*A^2*B^3 + B^5)*a^2*b^3 + (A^4*B + 2*A^
2*B^3 + B^5)*b^5)*sqrt(sin(d*x + c)/cos(d*x + c)))/(((A^4 + 2*A^2*B^2 + B^4)*a^4 + 2*(A^4 + 2*A^2*B^2 + B^4)*a
^2*b^2 + (A^4 + 2*A^2*B^2 + B^4)*b^4)*d)
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \tan \left (d x + c\right ) + A\right )} {\left (b \tan \left (d x + c\right ) + a\right )}}{\sqrt {\tan \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*tan(d*x+c))*(A+B*tan(d*x+c))/tan(d*x+c)^(1/2),x, algorithm="giac")
[Out]
integrate((B*tan(d*x + c) + A)*(b*tan(d*x + c) + a)/sqrt(tan(d*x + c)), x)
________________________________________________________________________________________
maple [B] time = 0.10, size = 437, normalized size = 2.13 \[ \frac {2 b B \left (\sqrt {\tan }\left (d x +c \right )\right )}{d}+\frac {a A \sqrt {2}\, \arctan \left (1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )}{2 d}+\frac {a A \sqrt {2}\, \arctan \left (-1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )}{2 d}+\frac {A \sqrt {2}\, \ln \left (\frac {1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}{1-\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}\right ) a}{4 d}-\frac {B \sqrt {2}\, \arctan \left (1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right ) b}{2 d}-\frac {B \sqrt {2}\, \arctan \left (-1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right ) b}{2 d}-\frac {B \sqrt {2}\, \ln \left (\frac {1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}{1-\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}\right ) b}{4 d}+\frac {A \sqrt {2}\, \arctan \left (1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right ) b}{2 d}+\frac {A \sqrt {2}\, \arctan \left (-1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right ) b}{2 d}+\frac {A \sqrt {2}\, \ln \left (\frac {1-\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}{1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}\right ) b}{4 d}+\frac {a B \sqrt {2}\, \arctan \left (1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )}{2 d}+\frac {a B \sqrt {2}\, \arctan \left (-1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )}{2 d}+\frac {B \sqrt {2}\, \ln \left (\frac {1-\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}{1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}\right ) a}{4 d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((a+b*tan(d*x+c))*(A+B*tan(d*x+c))/tan(d*x+c)^(1/2),x)
[Out]
2*b*B*tan(d*x+c)^(1/2)/d+1/2/d*a*A*2^(1/2)*arctan(1+2^(1/2)*tan(d*x+c)^(1/2))+1/2/d*a*A*2^(1/2)*arctan(-1+2^(1
/2)*tan(d*x+c)^(1/2))+1/4/d*A*2^(1/2)*ln((1+2^(1/2)*tan(d*x+c)^(1/2)+tan(d*x+c))/(1-2^(1/2)*tan(d*x+c)^(1/2)+t
an(d*x+c)))*a-1/2/d*B*2^(1/2)*arctan(1+2^(1/2)*tan(d*x+c)^(1/2))*b-1/2/d*B*2^(1/2)*arctan(-1+2^(1/2)*tan(d*x+c
)^(1/2))*b-1/4/d*B*2^(1/2)*ln((1+2^(1/2)*tan(d*x+c)^(1/2)+tan(d*x+c))/(1-2^(1/2)*tan(d*x+c)^(1/2)+tan(d*x+c)))
*b+1/2/d*A*2^(1/2)*arctan(1+2^(1/2)*tan(d*x+c)^(1/2))*b+1/2/d*A*2^(1/2)*arctan(-1+2^(1/2)*tan(d*x+c)^(1/2))*b+
1/4/d*A*2^(1/2)*ln((1-2^(1/2)*tan(d*x+c)^(1/2)+tan(d*x+c))/(1+2^(1/2)*tan(d*x+c)^(1/2)+tan(d*x+c)))*b+1/2/d*a*
B*2^(1/2)*arctan(1+2^(1/2)*tan(d*x+c)^(1/2))+1/2/d*a*B*2^(1/2)*arctan(-1+2^(1/2)*tan(d*x+c)^(1/2))+1/4/d*B*2^(
1/2)*ln((1-2^(1/2)*tan(d*x+c)^(1/2)+tan(d*x+c))/(1+2^(1/2)*tan(d*x+c)^(1/2)+tan(d*x+c)))*a
________________________________________________________________________________________
maxima [A] time = 0.66, size = 174, normalized size = 0.85 \[ \frac {2 \, \sqrt {2} {\left ({\left (A + B\right )} a + {\left (A - B\right )} b\right )} \arctan \left (\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} + 2 \, \sqrt {\tan \left (d x + c\right )}\right )}\right ) + 2 \, \sqrt {2} {\left ({\left (A + B\right )} a + {\left (A - B\right )} b\right )} \arctan \left (-\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} - 2 \, \sqrt {\tan \left (d x + c\right )}\right )}\right ) + \sqrt {2} {\left ({\left (A - B\right )} a - {\left (A + B\right )} b\right )} \log \left (\sqrt {2} \sqrt {\tan \left (d x + c\right )} + \tan \left (d x + c\right ) + 1\right ) - \sqrt {2} {\left ({\left (A - B\right )} a - {\left (A + B\right )} b\right )} \log \left (-\sqrt {2} \sqrt {\tan \left (d x + c\right )} + \tan \left (d x + c\right ) + 1\right ) + 8 \, B b \sqrt {\tan \left (d x + c\right )}}{4 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*tan(d*x+c))*(A+B*tan(d*x+c))/tan(d*x+c)^(1/2),x, algorithm="maxima")
[Out]
1/4*(2*sqrt(2)*((A + B)*a + (A - B)*b)*arctan(1/2*sqrt(2)*(sqrt(2) + 2*sqrt(tan(d*x + c)))) + 2*sqrt(2)*((A +
B)*a + (A - B)*b)*arctan(-1/2*sqrt(2)*(sqrt(2) - 2*sqrt(tan(d*x + c)))) + sqrt(2)*((A - B)*a - (A + B)*b)*log(
sqrt(2)*sqrt(tan(d*x + c)) + tan(d*x + c) + 1) - sqrt(2)*((A - B)*a - (A + B)*b)*log(-sqrt(2)*sqrt(tan(d*x + c
)) + tan(d*x + c) + 1) + 8*B*b*sqrt(tan(d*x + c)))/d
________________________________________________________________________________________
mupad [B] time = 8.89, size = 1420, normalized size = 6.93 \[ 2\,\mathrm {atanh}\left (\frac {32\,A^2\,a^2\,\sqrt {\mathrm {tan}\left (c+d\,x\right )}\,\sqrt {\frac {\sqrt {-A^4\,a^4\,d^4+2\,A^4\,a^2\,b^2\,d^4-A^4\,b^4\,d^4}}{4\,d^4}-\frac {A^2\,a\,b}{2\,d^2}}}{\frac {16\,A^3\,b^3}{d}+\frac {16\,A\,a\,\sqrt {-A^4\,a^4\,d^4+2\,A^4\,a^2\,b^2\,d^4-A^4\,b^4\,d^4}}{d^3}-\frac {16\,A^3\,a^2\,b}{d}}-\frac {32\,A^2\,b^2\,\sqrt {\mathrm {tan}\left (c+d\,x\right )}\,\sqrt {\frac {\sqrt {-A^4\,a^4\,d^4+2\,A^4\,a^2\,b^2\,d^4-A^4\,b^4\,d^4}}{4\,d^4}-\frac {A^2\,a\,b}{2\,d^2}}}{\frac {16\,A^3\,b^3}{d}+\frac {16\,A\,a\,\sqrt {-A^4\,a^4\,d^4+2\,A^4\,a^2\,b^2\,d^4-A^4\,b^4\,d^4}}{d^3}-\frac {16\,A^3\,a^2\,b}{d}}\right )\,\sqrt {\frac {\sqrt {-A^4\,a^4\,d^4+2\,A^4\,a^2\,b^2\,d^4-A^4\,b^4\,d^4}}{4\,d^4}-\frac {A^2\,a\,b}{2\,d^2}}-2\,\mathrm {atanh}\left (\frac {32\,A^2\,a^2\,\sqrt {\mathrm {tan}\left (c+d\,x\right )}\,\sqrt {-\frac {\sqrt {-A^4\,a^4\,d^4+2\,A^4\,a^2\,b^2\,d^4-A^4\,b^4\,d^4}}{4\,d^4}-\frac {A^2\,a\,b}{2\,d^2}}}{\frac {16\,A\,a\,\sqrt {-A^4\,a^4\,d^4+2\,A^4\,a^2\,b^2\,d^4-A^4\,b^4\,d^4}}{d^3}-\frac {16\,A^3\,b^3}{d}+\frac {16\,A^3\,a^2\,b}{d}}-\frac {32\,A^2\,b^2\,\sqrt {\mathrm {tan}\left (c+d\,x\right )}\,\sqrt {-\frac {\sqrt {-A^4\,a^4\,d^4+2\,A^4\,a^2\,b^2\,d^4-A^4\,b^4\,d^4}}{4\,d^4}-\frac {A^2\,a\,b}{2\,d^2}}}{\frac {16\,A\,a\,\sqrt {-A^4\,a^4\,d^4+2\,A^4\,a^2\,b^2\,d^4-A^4\,b^4\,d^4}}{d^3}-\frac {16\,A^3\,b^3}{d}+\frac {16\,A^3\,a^2\,b}{d}}\right )\,\sqrt {-\frac {\sqrt {-A^4\,a^4\,d^4+2\,A^4\,a^2\,b^2\,d^4-A^4\,b^4\,d^4}}{4\,d^4}-\frac {A^2\,a\,b}{2\,d^2}}-2\,\mathrm {atanh}\left (\frac {32\,B^2\,a^2\,\sqrt {\mathrm {tan}\left (c+d\,x\right )}\,\sqrt {\frac {B^2\,a\,b}{2\,d^2}-\frac {\sqrt {-B^4\,a^4\,d^4+2\,B^4\,a^2\,b^2\,d^4-B^4\,b^4\,d^4}}{4\,d^4}}}{\frac {16\,B^3\,a^3}{d}+\frac {16\,B\,b\,\sqrt {-B^4\,a^4\,d^4+2\,B^4\,a^2\,b^2\,d^4-B^4\,b^4\,d^4}}{d^3}-\frac {16\,B^3\,a\,b^2}{d}}-\frac {32\,B^2\,b^2\,\sqrt {\mathrm {tan}\left (c+d\,x\right )}\,\sqrt {\frac {B^2\,a\,b}{2\,d^2}-\frac {\sqrt {-B^4\,a^4\,d^4+2\,B^4\,a^2\,b^2\,d^4-B^4\,b^4\,d^4}}{4\,d^4}}}{\frac {16\,B^3\,a^3}{d}+\frac {16\,B\,b\,\sqrt {-B^4\,a^4\,d^4+2\,B^4\,a^2\,b^2\,d^4-B^4\,b^4\,d^4}}{d^3}-\frac {16\,B^3\,a\,b^2}{d}}\right )\,\sqrt {\frac {B^2\,a\,b}{2\,d^2}-\frac {\sqrt {-B^4\,a^4\,d^4+2\,B^4\,a^2\,b^2\,d^4-B^4\,b^4\,d^4}}{4\,d^4}}+2\,\mathrm {atanh}\left (\frac {32\,B^2\,a^2\,\sqrt {\mathrm {tan}\left (c+d\,x\right )}\,\sqrt {\frac {\sqrt {-B^4\,a^4\,d^4+2\,B^4\,a^2\,b^2\,d^4-B^4\,b^4\,d^4}}{4\,d^4}+\frac {B^2\,a\,b}{2\,d^2}}}{\frac {16\,B\,b\,\sqrt {-B^4\,a^4\,d^4+2\,B^4\,a^2\,b^2\,d^4-B^4\,b^4\,d^4}}{d^3}-\frac {16\,B^3\,a^3}{d}+\frac {16\,B^3\,a\,b^2}{d}}-\frac {32\,B^2\,b^2\,\sqrt {\mathrm {tan}\left (c+d\,x\right )}\,\sqrt {\frac {\sqrt {-B^4\,a^4\,d^4+2\,B^4\,a^2\,b^2\,d^4-B^4\,b^4\,d^4}}{4\,d^4}+\frac {B^2\,a\,b}{2\,d^2}}}{\frac {16\,B\,b\,\sqrt {-B^4\,a^4\,d^4+2\,B^4\,a^2\,b^2\,d^4-B^4\,b^4\,d^4}}{d^3}-\frac {16\,B^3\,a^3}{d}+\frac {16\,B^3\,a\,b^2}{d}}\right )\,\sqrt {\frac {\sqrt {-B^4\,a^4\,d^4+2\,B^4\,a^2\,b^2\,d^4-B^4\,b^4\,d^4}}{4\,d^4}+\frac {B^2\,a\,b}{2\,d^2}}+\frac {2\,B\,b\,\sqrt {\mathrm {tan}\left (c+d\,x\right )}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(((A + B*tan(c + d*x))*(a + b*tan(c + d*x)))/tan(c + d*x)^(1/2),x)
[Out]
2*atanh((32*A^2*a^2*tan(c + d*x)^(1/2)*((2*A^4*a^2*b^2*d^4 - A^4*b^4*d^4 - A^4*a^4*d^4)^(1/2)/(4*d^4) - (A^2*a
*b)/(2*d^2))^(1/2))/((16*A^3*b^3)/d + (16*A*a*(2*A^4*a^2*b^2*d^4 - A^4*b^4*d^4 - A^4*a^4*d^4)^(1/2))/d^3 - (16
*A^3*a^2*b)/d) - (32*A^2*b^2*tan(c + d*x)^(1/2)*((2*A^4*a^2*b^2*d^4 - A^4*b^4*d^4 - A^4*a^4*d^4)^(1/2)/(4*d^4)
- (A^2*a*b)/(2*d^2))^(1/2))/((16*A^3*b^3)/d + (16*A*a*(2*A^4*a^2*b^2*d^4 - A^4*b^4*d^4 - A^4*a^4*d^4)^(1/2))/
d^3 - (16*A^3*a^2*b)/d))*((2*A^4*a^2*b^2*d^4 - A^4*b^4*d^4 - A^4*a^4*d^4)^(1/2)/(4*d^4) - (A^2*a*b)/(2*d^2))^(
1/2) - 2*atanh((32*A^2*a^2*tan(c + d*x)^(1/2)*(- (2*A^4*a^2*b^2*d^4 - A^4*b^4*d^4 - A^4*a^4*d^4)^(1/2)/(4*d^4)
- (A^2*a*b)/(2*d^2))^(1/2))/((16*A*a*(2*A^4*a^2*b^2*d^4 - A^4*b^4*d^4 - A^4*a^4*d^4)^(1/2))/d^3 - (16*A^3*b^3
)/d + (16*A^3*a^2*b)/d) - (32*A^2*b^2*tan(c + d*x)^(1/2)*(- (2*A^4*a^2*b^2*d^4 - A^4*b^4*d^4 - A^4*a^4*d^4)^(1
/2)/(4*d^4) - (A^2*a*b)/(2*d^2))^(1/2))/((16*A*a*(2*A^4*a^2*b^2*d^4 - A^4*b^4*d^4 - A^4*a^4*d^4)^(1/2))/d^3 -
(16*A^3*b^3)/d + (16*A^3*a^2*b)/d))*(- (2*A^4*a^2*b^2*d^4 - A^4*b^4*d^4 - A^4*a^4*d^4)^(1/2)/(4*d^4) - (A^2*a*
b)/(2*d^2))^(1/2) - 2*atanh((32*B^2*a^2*tan(c + d*x)^(1/2)*((B^2*a*b)/(2*d^2) - (2*B^4*a^2*b^2*d^4 - B^4*b^4*d
^4 - B^4*a^4*d^4)^(1/2)/(4*d^4))^(1/2))/((16*B^3*a^3)/d + (16*B*b*(2*B^4*a^2*b^2*d^4 - B^4*b^4*d^4 - B^4*a^4*d
^4)^(1/2))/d^3 - (16*B^3*a*b^2)/d) - (32*B^2*b^2*tan(c + d*x)^(1/2)*((B^2*a*b)/(2*d^2) - (2*B^4*a^2*b^2*d^4 -
B^4*b^4*d^4 - B^4*a^4*d^4)^(1/2)/(4*d^4))^(1/2))/((16*B^3*a^3)/d + (16*B*b*(2*B^4*a^2*b^2*d^4 - B^4*b^4*d^4 -
B^4*a^4*d^4)^(1/2))/d^3 - (16*B^3*a*b^2)/d))*((B^2*a*b)/(2*d^2) - (2*B^4*a^2*b^2*d^4 - B^4*b^4*d^4 - B^4*a^4*d
^4)^(1/2)/(4*d^4))^(1/2) + 2*atanh((32*B^2*a^2*tan(c + d*x)^(1/2)*((2*B^4*a^2*b^2*d^4 - B^4*b^4*d^4 - B^4*a^4*
d^4)^(1/2)/(4*d^4) + (B^2*a*b)/(2*d^2))^(1/2))/((16*B*b*(2*B^4*a^2*b^2*d^4 - B^4*b^4*d^4 - B^4*a^4*d^4)^(1/2))
/d^3 - (16*B^3*a^3)/d + (16*B^3*a*b^2)/d) - (32*B^2*b^2*tan(c + d*x)^(1/2)*((2*B^4*a^2*b^2*d^4 - B^4*b^4*d^4 -
B^4*a^4*d^4)^(1/2)/(4*d^4) + (B^2*a*b)/(2*d^2))^(1/2))/((16*B*b*(2*B^4*a^2*b^2*d^4 - B^4*b^4*d^4 - B^4*a^4*d^
4)^(1/2))/d^3 - (16*B^3*a^3)/d + (16*B^3*a*b^2)/d))*((2*B^4*a^2*b^2*d^4 - B^4*b^4*d^4 - B^4*a^4*d^4)^(1/2)/(4*
d^4) + (B^2*a*b)/(2*d^2))^(1/2) + (2*B*b*tan(c + d*x)^(1/2))/d
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (A + B \tan {\left (c + d x \right )}\right ) \left (a + b \tan {\left (c + d x \right )}\right )}{\sqrt {\tan {\left (c + d x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*tan(d*x+c))*(A+B*tan(d*x+c))/tan(d*x+c)**(1/2),x)
[Out]
Integral((A + B*tan(c + d*x))*(a + b*tan(c + d*x))/sqrt(tan(c + d*x)), x)
________________________________________________________________________________________